<?php // thong ke thong tin
	$GioHang = $_SESSION['GioHang'];

    $SoMatHang = count($GioHang);
    
    $TongTien = 0;
    foreach($GioHang as $MaHH=>$MatHang)
	{
		$TongTien += $MatHang['DonGia']*$MatHang['SoLuong']*(1-$MatHang['GiamGia']);
	}
?>
<div>
<table cellpadding="3" cellspacing="0" width="100%">
    <tr>
        <td rowspan="3" width="64px">
            <img src="Hinh/Others/shopping_cart.png" /></td>
        <td>
            <?php echo $SoMatHang?> items
        </td>
    </tr>
    <tr>
        <td>
            <?php echo $TongTien?> USD
        </td>
    </tr>
    <tr>
        <td align="right">
            <a href="index.php?p=ShoppingCart">View Cart</a>
        </td>
    </tr>
</table>
</div>